<template>
    <sc-table-select v-model="form[item.name]" :fileName="item.fileName" :mapping="item.mapping" multiple
        :props="item.props" :injectionKey="item.injectionKey" :inputWidth="item.inputWidth"
        :maxCollapseTags="item.maxCollapseTags" :initForm="item.initForm" :limit="item.limit"
        @change="change"></sc-table-select>
</template>
<script setup>
import { ref, defineModel } from "vue";
import tool from '@/utils/tool'
const form = defineModel();
const props = defineProps({
    item: { type: Object, default: () => { } },
});
const change = (val) => {
    tool.evalute(props.item.onChange, val)
}
</script>
